package com.rd.student.wulian.wanggaobo.day0803;

public class Pig extends Animal {
    public Pig(String name) {
        super(name);
    }

    @Override
    public void enjoy() {
        System.out.println(name+"哼一哼");
    }

    @Override
    public void voice() {
        System.out.println("哼哼");
    }
}